6/26/07 google breakage; they accidentally dropped a </tr>
authorparkrrrr <parkrrrr>
Tue, 26 Jun 2007 13:10:48 +0000 (13:10 +0000)
committerparkrrrr <parkrrrr>
Tue, 26 Jun 2007 13:10:48 +0000 (13:10 +0000)
google.c

index 6744c07f8cf1516e666437a10c10cd6eb15fd079..7169dc1585d535abcf9f1bfca124d72a23c7d9f9 100644 (file)
--- a/google.c
+++ b/google.c
@@ -422,13 +422,13 @@ google_read(void)
                    end = strstr( panel, "/table><div class=\\\"legal" );
                    if ( !end ) {
                      end = strstr( panel, "/table><div class=\\042legal" );
-                   }
+                   }               
                    if ( !end ) {
                      end = strstr( panel, "/table\\u003e\\u003cdiv id=\\\"mrDragRouteTip\\\"" );
-                   }               
-                   if ( end ) {
-                     strcpy(end,"/table></div>");
-                   }
+                   }              
+                    if ( end ) {
+                      strcpy(end,"/table></div>");
+                    }
                    if ( !end ) {
                      end = strstr( panel, "/div><div class=\\042legal");
                      if ( end ) {
@@ -475,6 +475,14 @@ google_read(void)
                          *to++ = ' ';
                          from += 8;
                        }
+                       else if ( !strncmp( from, "tr style=\\\"display:none", 23 )) {
+                         if ( strcmp( to-5, "/tr><" )) {
+                           /* broken 6-26-07 missing </tr> that apparently doesn't bother browsers */
+                           strcpy(to, "/tr><" );
+                           to += 5;
+                         }
+                         *to++ = *from++;
+                       }
                        else {
                          *to++ = *from++;
                        }